﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JXT.PrimaryKey.Batman.Domain.Models;

namespace JXT.PrimaryKey.Batman.Domain.Quotation.Models
{
    [Serializable]
    public class MarketStatus : ValueObjectBase<MarketStatus>
    {
        public MarketType MarketType { get; set; }

        public DateTime Date { get; set; }

        public SecuritiesType SecuritiesType { get; set; }

        public int UpCount { get; set; }

        public int NoChangeCount { get; set; }

        public int DownCount { get; set; }

        public int StockSum { get; set; }

        public override bool Equals(MarketStatus other)
        {
            if (other == null)
                return false;
            return MarketType == other.MarketType &&
                Date == other.Date &&
                UpCount == other.UpCount &&
                NoChangeCount == other.NoChangeCount &&
                DownCount == other.DownCount &&
                StockSum == other.StockSum;
        }
    }
}
